home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-08-28 | 4.0 KB | 76 lines | [TEXT/MPS ] |
-
- ; Created: Wednesday, August 14, 1991 9:33 AM
- ;
- ; File: Components.a
- ;
- ; Assembler Interface to the Macintosh Libraries
- ; Copyright Apple Computer, Inc. 1990-1991
- ; All Rights Reserved
- ;
- ;___________________________________________________________________________
- IF &TYPE('__INCLUDINGCOMPONENTS__') = 'UNDEFINED' THEN
- __INCLUDINGCOMPONENTS__ SET 1
-
- kAnyComponentType EQU 0
- kAnyComponentSubType EQU 0
- kAnyComponentManufacturer EQU 0
- kAnyComponentFlagsMask EQU 0
-
- cmpWantsRegisterMessage EQU $80000000
-
- ComponentDescription RECORD 0
- componentType DS.L 1 ; A unique 4-byte code indentifying the command set
- componentSubType DS.L 1 ; Particular flavor of this instance
- componentManufacturer DS.L 1 ; Vendor indentification
- componentFlags DS.L 1 ; 8 each for Component,Type,SubType,Manuf/revision
- componentFlagsMask DS.L 1 ; Mask for specifying which flags to consider in search, zero during registration
- size EQU *
- ENDR
-
- ResourceSpec RECORD 0
- resType DS.L 1 ; 4-byte code
- resId DS.W 1
- size EQU *
- ENDR
-
- ComponentResource RECORD 0
- cd DS ComponentDescription ; Registration parameters
- component DS ResourceSpec ; resource where Component code is found
- componentName DS ResourceSpec ; name string resource
- componentInfo DS ResourceSpec ; info string resource
- componentIcon DS ResourceSpec ; icon resource
- size EQU *
- ENDR
-
- ; Structure received by Component:
- ComponentParameters RECORD 0
- flags DS.B 1 ; call modifiers: sync/async, deferred, immed, etc
- paramSize DS.B 1 ; size in bytes of actual parameters passed to this call
- what DS.W 1 ; routine selector, negative for Component management calls
- params DS.L 1 ; actual parameters for the indicated routine
- size EQU *
- ENDR
-
-
-
-
- ; Set Default Component flags
- defaultComponentIdentical EQU 0
- defaultComponentAnyFlags EQU 1
- defaultComponentAnyManufacturer EQU 2
- defaultComponentAnySubType EQU 4
- defaultComponentAnyFlagsAnyManufacturer EQU defaultComponentAnyFlags+defaultComponentAnyManufacturer
- defaultComponentAnyFlagsAnyManufacturerAnySubType EQU defaultComponentAnyFlags+defaultComponentAnyManufacturer+defaultComponentAnySubType
-
-
- ; errors from component manager & components
- invalidComponentID EQU -3000
- validInstancesExist EQU -3001
- componentNotCaptured EQU -3002
- componentDontRegister EQU -3003
-
- badComponentInstance EQU $80008001
- badComponentSelector EQU $80008002
-
-
- ENDIF ; ...already included